﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Net.Http;
using System.Web.Http;
using yiCommerce.Service.Customers;

namespace yiCommerce.Areas.Admin.Controllers.api
{
    public class CustomerAdminApiController : ApiController
    {
        private ICustomerRegistrationService _customerRegistrationService;
        private ICustomerService _customerService;

        public SaveCustomerResult SaveCustomer(SaveCustomerRequest request)
        {
            var result = new SaveCustomerResult();
            var regResult = _customerRegistrationService.RegisterCustomer(new CustomerRegistrationRequest()
            {

            });
            return result;
        }
    }


  


    public class SaveCustomerRequest
    {
        public string Email { get; set; }
        public string Password { get; set; }
        public string UserName { get; set; }
        public IList<int> SelectedRoles { get; set; }
    }

    public class SaveCustomerResult
    {
        public string Status { get; set; }
        public string Message { get; set; }
    }
}
